<?php
/**
 * Created by PhpStorm.
 * User: robot
 * Date: 2018-04-21
 * Time: 13:39
 */

namespace app\base\model;


use think\Model;

class Artcomment extends Model
{


    public function getUseridAttr($value)
    {

        return User::get($value)->username;
    }


    public function getNickAttr($value,$data)
    {
        return User::get($data['userid'])->usernick;
//        return 132131321;
    }
}